package com.easy.dao;

import com.easy.bean.Course;
import com.easy.utils.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ICourseDao {

    List<Course> getPrivateCourse(@Param("course") Course course,@Param("page") Page page);
    int getPrivateCourseCount(@Param("course") Course course);

    Course getCourseByID(int id);

    int addPrivateCourse(Course course);

    int delCourseByID(int id);

    int editPrivateCourse(Course course);

    List<Course> getPublicCourse(@Param("course") Course course,@Param("page") Page page);
    int getPublicCourseCount(@Param("course") Course course);

    int addPublicCourse(Course course);

    int editPublicCourse(Course course);

    List<Course> getAllCourse();

}
